package com.example.forum.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

@Setter
@Getter
@ApiModel(value="角色")
public class RoleModel {

    @ApiModelProperty(value="角色Id")
    private String RoleId;
    @NotBlank(message = "角色名称不能为空")
    @ApiModelProperty(value="角色名称")
    private String Name;
    @ApiModelProperty(value="角色描述")
    private String Description;
    @ApiModelProperty(value="权限数组")
    private String[] Permissions;
}
